import request from '@/utils/request'

export function getList(params: any) {
  return request({
    url: '/SystemSet/FlowsetList',
    method: 'get',
    params,
  })
}

export function doEdit(data: any) {
  return request({
    url: '/SystemSet/FlowSetEdit',
    method: 'post',
    data,
  })
}
// 分单权限设置
export function SaveFlowAssignOrderSet(data: any) {
  return request({
    url: '/SystemSet/SaveFlowAssignOrderSet',
    method: 'post',
    data,
  })
}

export function getAssignOrderSetSelect(data: any) {
  return request({
    url: '/commapi/getAssignOrderSetSelect',
    method: 'post',
    data,
  })
}

export function doDelete(data: any) {
  return request({
    url: '/systemset/business/flow/doDelete',
    method: 'post',
    data,
  })
}
